home *** CD-ROM | disk | FTP | other *** search
/ Disc to the Future 2 / Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin / MAC / THINKC / 3_0 / OIC_1 / PROFORMA.C < prev    next >
Text File  |  1989-02-19  |  798b  |  51 lines

  1. /*    
  2.  *        Proforma abstract class
  3.  *
  4.  *        ?????  ????  ?????. 
  5.  *
  6.  *            Copyright ⌐ John Wainwright 1988
  7.  *
  8.  *    SuperClasses :
  9.  *
  10.  *  Instance Vars :
  11.  *
  12.  *    Class Vars :
  13.  *    
  14.  *    Methods :
  15.  *
  16.  *    Class Methods :
  17.  *
  18.  */
  19.  
  20. #include "oic.h"
  21. #include "generics.h"
  22.  
  23. class         Proforma;                /* the Proforma class                 */
  24.  
  25. struct Proforma_i                    /* Proforma instance structure        */
  26. {
  27.     char    *x;
  28. };
  29. typedef struct Proforma_i Proforma_i;
  30.  
  31. /* -------------------- Proforma Instance methods ------------------- */
  32.  
  33. static object
  34. _new(self, p, pa)
  35.     object                self;
  36.     register Proforma_i    *p;
  37.     register struct {}    *pa;
  38. {
  39. }
  40.  
  41. /* ------------------- Init the Proforma class ---------------------- */
  42.  
  43. InitProforma()
  44. {
  45.     Proforma = NewClass(sizeof(Proforma_i), 0, "Proforma", END);
  46.     AddMethods(Proforma,
  47.         newGeneric,     _new,
  48.         END);
  49. }
  50.  
  51.